package com.company;

import java.util.Scanner;

public class CLASS4 {
    private void class4_2(){
        /**
         * 作业输入五个整数，从小到大打印到控制台
         */


        Scanner a=new Scanner(System.in);
        long b[]=new long[5];
        for (int i = 0; i < 5; i++) {
            try{
                b[i]=a.nextInt();
            }catch(Exception e){
                b[i]=0;
            }
        }

        for (int i = 0; i < 5; i++) {
            long Y=0;
            for (int j = i; j < 5; j++) {
                if (b[i]>=b[j]){
                    Y=b[i]; b[i]=b[j]; b[j]=Y;
                }
            }
            System.out.println(" "+b[i]);
        }


        /**
         * 教师案例
         */

        /**
         *
         */
    }
}
